export function commenPrefix<T extends Object>(apiModule: T): T {
  Object.keys(apiModule).forEach((key) => {
    const api = Reflect.get(apiModule, key);
    Reflect.set(apiModule, key, "/wsc" + api);
  });
  return apiModule;
}

export interface IAxiosResultProps<T = any> {
  code: number;
  msg: string;
  data: T;
}

export default {
  /** 主业务 */
  MAIN: commenPrefix({
    GET_INDEX: "/api-index/index/pageBody/getCouponInfo",
  }),
};
